In this project, I performed network configuration and connectivity testing tasks on Rocky Linux and Ubuntu Server systems. I began by switching to a terminal and logging in as root, where I used the hostname command and verified hostname configurations through /etc/hostname. I reviewed DNS settings in /etc/resolv.conf and examined the name resolution order in /etc/nsswitch.conf. I then edited the /etc/hosts file to add a custom host entry and successfully tested hostname resolution using the ping command on localhost, the new entry, and a fictitious host.
Next, I tested DNS resolution by resolving the IP address of ftp.kernel.org using host, nslookup, and dig commands on Ubuntu Server. I compared the outputs, confirming that the ISP’s DNS servers processed my queries and noting differences in the information each tool provided. I verified the successful retrieval of DNS information across different tools, demonstrating my ability to use multiple utilities for DNS diagnostics.
Finally, I managed and tested the routing table on Rocky Linux by viewing current routes with route, identifying the default gateway, and adding a custom route with ip route add. I analyzed the effect of adding a new route on network traffic behavior and used traceroute and tracepath to examine the path to ftp.kernel.org. I also checked the status of IPv4 and IPv6 forwarding using /proc/sys files. By completing these tasks, I showcased practical skills in Linux network configuration, troubleshooting, and route management.